// app.js
// 引入 utils 模块
import './utils/utils.js'
// 引入 http 模块
import './utils/http.js'

App({
  globalData: {},
  onLaunch() {
    this.getToken()
  },
  getToken() {
    this.token = wx.getStorageSync('token')
    this.refreshToken = wx.getStorageSync('refreshToken')
  },
  setToken(key, token) {
    this[key] = token
    wx.setStorageSync(key, token)
  },
})
